package com.sensePlusVR.widget.dialog;

import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.sensePlusVR.activity.user.LoginActivity;
import com.sensePlusVR.base.BaseDialog;
import com.sensePlusVR.main.R;
import com.sensePlusVR.utils.MyPageJump;
/**
 * 
 * @author: Loren
 * @create: 2016-8-10下午3:09:19
 * @desc:登陆悬浮全屏对话框
 *
 */
@SuppressWarnings("unused")
public class LoginAlertDialog extends BaseDialog implements OnClickListener{
	
	private static final String TAG = LoginAlertDialog.class.getSimpleName();
	private Context context;
	private Button login_cover_login;
	
	public LoginAlertDialog(Context context) {
		super(context);
		this.context = context;
	}

	public LoginAlertDialog(Context context, int theme) {
		super(context, theme);
		this.context = context;
		
	}
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.dialog_login_over);
		
		login_cover_login = (Button) findViewById(R.id.login_cover_login);
		login_cover_login.setOnClickListener(this);
		
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.login_cover_login:
			MyPageJump.pageJump(context, LoginActivity.class);
			break;
		}
		cancel();
	}

}
